﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate.Mappings;

namespace Apollo.Modules.Salary
{
    [NHibernateEntity(Table = "PayrollComponents")]
    public class PayrollComponent : ITrackable
    {
        public PayrollComponent() { }
        
        [PrimaryKey]
        public virtual int Id { get; set; }

        [BelongsTo(Column = "ID_EmployeeComponent")]
        public virtual EmployeeComponent EmployeeComponent { get; set; }

        [BelongsTo(Column = "ID_Payroll")]
        public virtual Payroll Payroll { get; set; }

        [Property]
        public virtual double StartMonthValue { get; set; }

        [Property]
        public virtual double EndMonthValue { get; set; }


        [Property]
        public virtual DateTime InsertDate { get; set; }

        [Property]
        public virtual string InsertBy { get; set; }

        [Property]
        public virtual DateTime? ModifiedDate { get; set; }

        [Property]
        public virtual string ModifiedBy { get; set; }
    }
}
